package com.tomtop.core.datasource.config;

import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "dataSource")
public class DruidConfig {
	/*
	 * 默认的db配置  设置该值后，后续的各个具体db节点配置，会继承该配置 </br>  默认值，系统默认定义
	 */
	private DruidProperties defaultConfig;
	/*
	 * 具体的DB配置参数
	 */
	private Map<String, DruidNode> dbNode;

	public Map<String, DruidNode> getDbNode() {
		return dbNode;
	}

	public void setDbNode(Map<String, DruidNode> dbNode) {
		this.dbNode = dbNode;
	}

	public DruidProperties getDefaultConfig() {
		return defaultConfig;
	}

	public void setDefaultConfig(DruidProperties defaultConfig) {
		this.defaultConfig = defaultConfig;
	}

}
